<Query Kind="Program">
  <Reference Relative="..\WebSite\Web.Service\bin\Ayatta.Common.dll">F:\Ayatta\WebSite\Web.Service\bin\Ayatta.Common.dll</Reference>
  <Reference Relative="..\WebSite\Web.Service\bin\Ayatta.Contract.dll">F:\Ayatta\WebSite\Web.Service\bin\Ayatta.Contract.dll</Reference>
  <Reference Relative="..\WebSite\Web.Service\bin\Ayatta.Service.dll">F:\Ayatta\WebSite\Web.Service\bin\Ayatta.Service.dll</Reference>
  <Reference Relative="..\WebSite\Web.Service\bin\Dapper.dll">F:\Ayatta\WebSite\Web.Service\bin\Dapper.dll</Reference>
  <Namespace>Ayatta.Service</Namespace>
  <Namespace>Ayatta.Contract.Domain</Namespace>
  <Namespace>Dapper</Namespace>
</Query>

void Main()
{
	//UserGet(3);
	//UserExist("420303865@qq.comd");
	var store=new StoreService();
	var s=store.ProductItemGet(1);
	s.Dump();
} 
public void UserExist(string name){
	var passportService=new PassportService();
	var s=passportService.UserExist(name);
	s.Dump();

}
public void UserSignUp(){
	var user=new User();
	user.Guid=Guid.NewGuid().ToString();
	user.Name=null;
	user.Nickname="test";
	user.Password="67337F56727C989BA9DD75A5FCEE8F0D";
	user.PayPassword=string.Empty;
	user.Role=UserRole.Buyer;
	user.Level=UserLevel.None;
	user.Limit=UserLimit.None;
	user.Permit=UserPermit.None;
	user.Email=user.Name;
	user.Mobile=string.Empty;
	user.Avatar=false;
	user.Status=UserStatus.Normal;
	user.Authenticated=false;
	user.AuthenticatedOn=null;
	user.CreatedBy=string.Empty;
	user.CreatedOn=DateTime.Now;
	var profile=new UserProfile();
	profile.Gender=Gender.Secrect;
	profile.Marital=Marital.Secrect;
	profile.LastSignInOn=DateTime.Now;
	var extra=new UserExtra();
	extra.Game=string.Empty;
	extra.LastServerId=0;
	user.Profile=profile;
	user.Extra=extra;
	var passportService=new PassportService();
	var s=passportService.UserCreate(user);
	s.Dump();
}
public void UserSignIn(){
	var passportService=new PassportService();
	var user=passportService.UserSignIn("420303865@qq.com","67337F56727C989BA9DD75A5FCEE8F0D");
	user.Dump();
}
public void UserGet(int id){
	var passportService=new PassportService();
	var user=passportService.UserGet(id,true,true);
	user.Dump();
}